<template>
  <div>
    <div class="title" v-for="(item,index) in list" :key="index">
      <span class="title-icon"></span>
      {{item.title}}
      <div v-if="item.childel">
        <detail-list :list="item.childel"></detail-list>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'DetailList',
  props: {
    list: Array
  }
}
</script>

<style lang="scss" scoped>
.title {
  line-height: 0.6rem;
  margin: 0 0.2rem;
  .title-icon {
    display: inline-block;
    width: 0.36rem;
    height: 0.36rem;
    background: url(http://s.qunarzz.com/piao/image/touch/sight/detail.png) 0 -0.45rem
      no-repeat;
    background-size: 0.4rem 3rem;
    // background-position-y: .1rem;
  }
}
</style>
